package com.xzan.medusaweb.basicdesign.test.impl;

import com.xzan.medusaweb.basicdesign.test.AbstractShopService;
import com.xzan.medusaweb.basicdesign.test.IShopService;

public class MainService {
    private static IShopService shopService=new HuaTaiShopServiceImpl();
    private static  IShopService shopServiceTwo=new YongHuiServiceImpl();
    private static AbstractShopService shopServiceAbstract=new HuaTailShopServiceAbstract();
    private static AbstractShopService yongHuiShopServiceAbstravt=new YongHuiShopServiceAbstravt();
    private static AbstractShopService abstractShopService=new AbstractShopService();
    public static void main(String[] args){
        shopService.buy();
        shopServiceTwo.buy();
        shopServiceAbstract.printBuy();
        yongHuiShopServiceAbstravt.printBuy();
        abstractShopService.printBuy();

    }
}
